-- GENERATED SPELL FOR [Myzrael] --


function spell0_2755(pUnit, Event) --@Myzrael Earthquake,Self--
pUnit:FullCastSpellOnTarget(4938,pUnit)
pUnit:RegisterEvent('Sorts_2755', 554, 1)
end

function spell1_2755(pUnit, Event) --@Summon Prismatic Exile,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(10388,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_2755', 1, 1)
end

function spell2_2755(pUnit, Event) --@Summon Prismatic Exiles,Self--
pUnit:FullCastSpellOnTarget(4937,pUnit)
pUnit:RegisterEvent('Sorts_2755', 624, 1)
end

function Sorts_2755(pUnit, Event)
local choix_sorts_2755 = math.random(0, 2)
if choix_sorts_2755 == 0 then
pUnit:RegisterEvent('spell0_2755', 1, 1)
end
if choix_sorts_2755 == 1 then
pUnit:RegisterEvent('spell1_2755', 1, 1)
end
if choix_sorts_2755 == 2 then
pUnit:RegisterEvent('spell2_2755', 1, 1)
end
end

function mob2755_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2755', math.random(1500, 3000), 1)
end

function mob2755_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2755_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2755_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2755, 1, 'mob2755_Action')
RegisterUnitEvent(2755, 2, 'mob2755_Leave')
RegisterUnitEvent(2755, 3, 'mob2755_Kill')
RegisterUnitEvent(2755, 4, 'mob2755_Die')
